package task

import db.Order
import manager.ReportManager


class OrderSaveTask(val order: Order) : Runnable {

    private fun exec() {
        order.insert()
        ReportManager.tryUpdate()
    }

    override fun run() {
        try {
            exec()
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }

}
